package objects;

/**
 * 计算三角形的面积
 * @author: yyfei  
 * @email:  yyfei123@qq.com
 */
public class TriAngle {
	//属性
	private double base;
	private double height;
	
	//构造器
	public TriAngle(double b,double h) {
		this.base=b;
		this.height=h;
	}
	
	
	//get set
	public double getBase() {
		return this.base;
	}
	public void setBase(double base) {
		this.base=base;
	}
	
	
	public double getHeight() {
		return this.height;
	}
	
	public void setHeight() {
		this.height=height;
	}
	
	
	//方法
	public double arae() {
		return (this.base * this.height)/2;
	}
}
